//
//  JCBarChart.h
//  JCBarCharts
//
//  Created by coollang on 17/2/27.
//  Copyright © 2017年 coollang. All rights reserved.
//

#import <UIKit/UIKit.h>

@class JCBarChart;
@class JCBarChartItem;

@protocol JCBarChartDelegate <NSObject>

@optional
- (void)bar:(JCBarChart *)barChart didselected:(NSInteger)index;
@end

@interface JCBarChart : UIView

@property (nonatomic, weak)id <JCBarChartDelegate> delegate;
@property (nonatomic, strong) UILabel *topLabel;
@property (nonatomic, strong) UIColor *barColor;
@property (nonatomic, strong) UIColor *barTapColor;
@property (nonatomic, assign) CGFloat barWidth;
@property (nonatomic, assign) CGFloat space;
//@property (nonatomic, strong) NSDictionary *dataDic;
@property (nonatomic, strong) NSArray <JCBarChartItem *> *items;

- (void)stroke;

@end
